package work04game;

public class Skill {
    private String name;
    private int damage;
    private int power;
    public Skill() {
        name = "1 猛击(30+playerDamage) ---MP-20";
        damage = 30;
        power = 20;
    }
    public void GetSkill1(){
        name = "2 重击(18+playerDamage) ---MP-12";
        damage = 18;
        power = 12;
    }
    public void GetSkill2(){
        name = "3 回复(HP+25) ---MP-15";
        damage = 25;
        power = 15;
    }
    public void printSkill(){
        System.out.println(name);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getDamage() {
        return damage;
    }

    public void setDamage(int damage) {
        this.damage = damage;
    }

    public int getPower() {
        return power;
    }

    public void setPower(int power) {
        this.power = power;
    }
}
